import React, {Component} from 'react'
import {Link} from 'react-router'
import '../sass/DeleteItem'

export default class DeleteItem extends Component {
  constructor() {
    super()
  }

  render() {
    const {confirmDel, cancelDel} = this.props

    return (
      <section className="cart-del">
        <div className="cart-del-box">
          <p>很抢手哦，下次不一定能买到~</p>
          <p>确定要删除我吗？</p>
          <Link className="link" onClick={confirmDel.bind(this)}>狠心删除</Link>
          <Link className="link" onClick={cancelDel.bind(this)}>留在购物车</Link>
        </div>
      </section>
    )
  }
}
